package com.winbomb.simulife.game.screens;

import com.winbomb.simulife.framework.Game;
import com.winbomb.simulife.framework.Screen;
import com.winbomb.simulife.framework.Input.TouchEvent;
import com.winbomb.simulife.game.Assets;
import com.winbomb.simulife.game.GameScreen;
import com.winbomb.simulife.game.TouchArea;

public class FinalExamScreen extends Screen {

	final TouchArea backArea = new TouchArea(10, 440, 100, 25);

	public FinalExamScreen(Game game) {
		super(game);
	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub

	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub

	}

	@Override
	public void present(float deltaTime) {
		g.drawPixmap(Assets.exam_score_1, 0, 0);
	}

	@Override
	public void resume() {
		// TODO Auto-generated method stub

	}

	@Override
	public void update(float deltaTime) {
		updateTouchEvents();

		for (TouchEvent event : touchEvents) {
			if (event.type != TouchEvent.TOUCH_UP) {
				continue;
			}

			if (backArea.isBound(event)) {
				game.getWorld().nextEvent();
				game.setScreen(new GameScreen(game));
			}
		}
	}

}
